<%
    // Validação de Login
    if(session.getAttribute("usuario") == null){
        response.sendRedirect("Login");
    }

    String raiz = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sistema Academico</title>
        <script src="<%=raiz%>/js/jquery.1.7.2.js"></script>
        <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/jquery-ui.js"></script>
        <script type="text/javascript" src="<%=raiz%>/js/calendario/calendario.js"></script>
        <link type="text/css" rel="Stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/themes/redmond/jquery-ui.css" />        
        <link rel="stylesheet" type="text/css" href="<%=raiz%>/css/admin-template/all.css" />        
        <script>
            $(function() {
                //Usado para resolver o bug do datepicker
                $("#ui-datepicker-div").css("display", "none");
            });
        </script>

    </head>
    <body>
        <div id="main">
            <div id="header">
                
                <a href="<%=raiz%>" class="logo"><img src="img/admin-template/logo.gif" width="101" height="29" alt="" /></a>
                <ul id="top-navigation">
                    <li id="liHomepage"><span><span><a href="<%=raiz%>">Homepage</a></span></span></span></li>
                    <li id="liCadastroInterno"><span><span><a href="CadastroInterno">Cadastro Interno</a></span></span></li>
                    <li id="liControleTurmaMatricula"><span><span><a href="ControleTurmaMatricula">Controle de Turma e Matricula</a></span></span></li>
                    <li id="liRelatorio"><span><span><a href="Relatorio">Relatorios</a></span></span></li>
                </ul>                
            </div>
            <div id="middle">
                <a href="<%=raiz%>/Login?logout=true" style="color:red;margin-left: 5px;font-size: 20px">LOGOUT</a>                